import request from '@/utils/request'

// 查询分捡单明细列表
export function listSplitBillDetail(query) {
  return request({
    url: '/inOutStock/splitBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询分捡单明细详细
export function getSplitBillDetail(id) {
  return request({
    url: '/inOutStock/splitBillDetail/' + id,
    method: 'get'
  })
}

// 新增分捡单明细
export function addSplitBillDetail(data) {
  return request({
    url: '/inOutStock/splitBillDetail',
    method: 'post',
    data: data
  })
}

// 修改分捡单明细
export function updateSplitBillDetail(data) {
  return request({
    url: '/inOutStock/splitBillDetail',
    method: 'put',
    data: data
  })
}

// 删除分捡单明细
export function delSplitBillDetail(id) {
  return request({
    url: '/inOutStock/splitBillDetail/' + id,
    method: 'delete'
  })
}
